//设备新增
import commonRequest from '/@/api/common/common';
import { validateNumberFixed4 } from '/@/utils/validators';
import { i18n } from '/@/locales/i18n';
const $t = i18n.global.t;

export default function (data: any) {
	const array = [
		{
			type: 'input',
			label: $t('0L17uCe1Gk2AiOwJgPszB'),
			key: 'v_CourseName',
			value: data.v_CourseName || '',
			rules: [{ required: true, message: $t('dRMoJAvogb9PLbSoUwe41'), trigger: ['blur', 'change'] }],
		},

		{
			type: 'number',
			label: $t('iVdBnd6bnIaz0IdjkRfN'),
			key: 'n_Score',
			value: data.n_Score || '',
			rules: [
				{ required: true, message: $t('dRMoJAvogb9PLbSoUwe41'), trigger: ['blur', 'change'] },
				{ type: 'number', message: $t('xue4GymJLcOjCshG1ay3'), trigger: ['change', 'blur'] },
			],
		},
		{
			type: 'radio',
			label: $t('sfwbsExMM3lGjDuN5zHf'),
			key: 'n_isValid',
			value: data.n_isValid || 1,
			options: [
				{
					value: 1,
					label: $t('iPfonvtxVLm7knSyCsLBo'),
				},
				{
					value: 2,
					label: $t('tzm8JwYsKnqKoNhheJlJx'),
				},
			],
		},
		{
			type: 'input',
			label: $t('9RLaVEiJf1Z1Qv15o6Kll'),
			key: 'v_Remake',
			value: data.v_Remake || '',
			disabledStyle: data.disable,
		},
		{
			type: 'slot',
			slotName: 'tint1',
			label: $t('s4KbtSrTfOzuWyRcHgTxx'),
			size: {
				xs: 24,
				sm: 24,
				md: 24,
				lg: 24,
				xl: 24,
			},
		},
		{
			type: 'slot',
			slotName: 'n_FileId',
		},
		{
			type: 'slot',
			slotName: 'Detail',
		},
	];
	return array;
}
